package qx.hyj.petrescue.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (Users)实体类
 *
 * @author makejava
 * @since 2024-12-19 10:47:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户")
@TableName("users")
public class Users {

    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    @TableField("account")
    private String account;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 是否为寄宿家庭
     */
    @TableField("jsfamily")
    private Integer jsfamily;

    /**
     * 是否为志愿者
     */
    @TableField("zyz")
    private Integer zyz;
}

